<layout name="page" />
<block name="content">
	{:widget('page_header/simple',array('name'=>$vo['name']))}
	<div class="operate-panel">
		<div class="split"></div>
		<a onclick="edit();" class="btn">编辑</a>
	</div>
	<form class="layui-form well" method='post' id="form_data" name="form_data" enctype="multipart/form-data">
		<input type="hidden" id="ajax" name="ajax" value="0">
		<div class="layui-form-item col-xs-6">
			<label class="col-xs-4 input-label" >开始:</label>
			<div class="col-xs-8">
				<p class="input-static">
					{$vo.start_date}&nbsp;{$vo.start_time|fix_time}
				</p>
			</div>
		</div>
		<div class="layui-form-item col-xs-6">
			<label class="col-xs-4 input-label" for="name">结束:</label>
			<div class="col-xs-8">
				<p class="input-static">
					{$vo.end_date}&nbsp;{$vo.end_time|fix_time}
				</p>
			</div>
		</div>
		<div class="layui-form-item col-xs-6">
			<label class="col-xs-4 input-label" for="name">地点:</label>
			<div class="col-xs-8">
				<p class="input-static">
					{$vo.location}
				</p>
			</div>
		</div>
		<div class="layui-form-item col-xs-6">
			<label class="col-xs-4 input-label" for="name">优先级:</label>
			<div class="col-xs-8">
				<div class="input-static" >
					<input type="hidden" id="priority" name="priority"/>
					<div  class="slider_box" >
						<div class="left" >
							低
						</div>
						<div id="slider-range-priority"></div>
						<div class="right" >
							高
						</div>
					</div>
				</div>
			</div>
		</div>
		
			<label class="col-xs-2 input-label" for="name">参与人员:</label>
			<div class="col-xs-10">
				<p class="input-static">
					{$vo.actor|show_contact}
				</p>
			</div>
		</div>
		
			<label class="col-xs-2 input-label" for="name">附件:</label>
			<div class="col-xs-10">
				{:widget('file_upload/view',array('add_file'=>$vo['add_file']))}
			</div>
		</div>
		<div class=""></div>
		
			<div class="col-xs-12">
				<div class="content_wrap" >
					<iframe class="content_iframe"></iframe>
					<textarea  class="editor content"  name="content" style="display:none;">{$vo.content}</textarea>
				</div>
			</div>

		</div>
	</form>

</block>
<block name="js">
	<script type="text/javascript">
		// 加载编辑器
		function edit() {
			parent.window.location.href = "{:url('edit','id='.$vo['id'])}";
			myclose();
		}

		function next() {
			<empty
			name = "next" > alert('没有下一个');
			<else/>
			window.location.href = "{:url('read','id='.$next.'&list='.$list)}";
			</if>
		}

		function prev() {
			<empty
			name = "prev" > alert('没有上一个');
			<else />
			window.location.href = "{:url('read','id='.$prev.'&list='.$list)}";
			</if>
		}

		$(function() {
			$("#slider-range-priority").slider({
				range : "min",
				min : 1,
				max : 5,
				value : "{$vo.priority}",
				slide : function(event, ui) {
					$("#priority").val(ui.value);
					$("div.slider_box div.ui-slider").css("background-color", schedule_bg(ui.value));
					$("div.slider_box div.ui-widget-header").css("background-color", schedule_bg(ui.value));
				}
			});
			$("div.slider_box div.ui-slider").css("background-color", schedule_bg("{$vo.priority}"));
			$("div.slider_box div.ui-widget-header").css("background-color", schedule_bg("{$vo.priority}"));
		});

		$(document).ready(function() {
			fill_time("start_time");
			fill_time("end_time");

		});
	</script>
</block>